import { apiRequestPost,apiRequestExport,apiRequestImport } from '../globalApi.js'
/**
 * 查询所有流程    
 */
export const apiQueryProcessesDef =(params)=>{
    return  apiRequestPost('/bpm-service/BpmProcessDef/queryProcessesDef', params)
}
/**
 * 查询用户列表
 */
export const apiQueryUser =(params)=>{
    return  apiRequestPost('/bpm-service/BpmUser/queryUser', params)
}
/**
 * 查询流程任务节点
 */
export const apiQueryTask =(params)=>{
    return  apiRequestPost('/bpm-service/ProcInst/queryTask', params)
}

//获取节点名称下拉数据
export const apiQueryProcessNode =(params)=>{
    return  apiRequestPost('/bpm-service/BpmProcessDef/queryProcessNode', params)
}
/**
 * 查询用户部门
 */
export const apiQueryDept =(params)=>{
    return  apiRequestPost('/bpm-service/BpmUser/queryDept', params)
}

/**
 * 查询岗位接口
 */
export const apiQueryRoles =(params)=>{
    return  apiRequestPost('/bpm-service/BpmUser/queryRoles', params)
}

/**
 * 应用系统查询
 */
export const apiQueryApp =(params)=>{
    return  apiRequestPost('/bpm-service/AppCfg/queryApp', params)
}

//应用系统保存
export const apiSaveApp =(params)=>{
    return  apiRequestPost('/bpm-service/AppCfg/saveApp', params)
}

//业务类型保存
export const apiSaveBizType =(params)=>{
    return  apiRequestPost('/bpm-service/AppCfg/saveBizType', params)
}

//业务模块保存
export const apiSaveModule =(params)=>{
    return  apiRequestPost('/bpm-service/AppCfg/saveModule', params)
}

//业务模块查询
export const apiQueryModule =(params)=>{
    return  apiRequestPost('/bpm-service/AppCfg/queryModule', params)
}

//业务模块导入
export const apiImportModule =(params)=>{
    return  apiRequestImport('/bpm-service/AppCfg/importModule', params)
}

//业务类型导入
export const apiImportBizType =(params)=>{
    return  apiRequestImport('/bpm-service/AppCfg/importBizType', params)
}

//应用系统导入
export const apiImportApp =(params)=>{
    return  apiRequestImport('/bpm-service/AppCfg/importApp', params)
}

//业务模块下载
export const apiExportModule =(params)=>{
    return  apiRequestExport('/bpm-service/AppCfg/exportModule', params)
}

//业务类型下载
export const apiExportBizType =(params)=>{
    return  apiRequestExport('/bpm-service/AppCfg/exportBizType', params)
}

//应用系统下载
export const apiExportApp =(params)=>{
    return  apiRequestExport('/bpm-service/AppCfg/exportApp', params)
}

//业务模块删除
export const apiDeleteModule =(params)=>{
    return  apiRequestPost('/bpm-service/AppCfg/deleteModule', params)
}

//业务类型删除
export const apiDeleteBizType =(params)=>{
    return  apiRequestPost('/bpm-service/AppCfg/deleteBizType', params)
}

//业务系统删除
export const apiDeleteApp =(params)=>{
    return  apiRequestPost('/bpm-service/AppCfg/deleteApp', params)
}


// 按流程实例授权列表

export const apiQueryNodeCode =(params)=>{
    return  apiRequestPost('/bpm-service/ProcAuthInst/queryNodeCode', params)
}

// 查询流程实例的权限

export const apiQueryAuth =(params)=>{
    return  apiRequestPost('/bpm-service/ProcAuthInst/queryAuth', params)
}

// 图形监控

export const apiGetProcessInfoById =(params)=>{
    return  apiRequestPost('/bpm-service/ProcAuthInst/getProcessInfoById', params)
}
// 删除流程实例授权

export const apiDeleteAuth =(params)=>{
    return  apiRequestPost('/bpm-service/ProcAuthInst/deleteAuth', params)
}
// 按查询条件授权/选择记录授权

export const apiProcAuthInstAuth =(params)=>{
    return  apiRequestPost('/bpm-service/ProcAuthInst/auth', params)
}

//按流程定义授权

//查询列表明细接口
export const apiQueryFollower=(params)=>{
    return  apiRequestPost('/bpm-service/ProcAuthDef/queryFollower', params)
}

//导出
export const apiProcessDefExportData=(params)=>{
    return  apiRequestExport('/bpm-service/BpmProcessDef/exportData', params)
}


//查询列表接口
// export const apiQueryAllProcesses=(params)=>{
//     return  apiRequestPost('/bpm-service/BpmProcessDef/queryAllProcesses', params)
// }

//新增查看权限
export const apiProcAuthDefAdd=(params)=>{
    return  apiRequestPost('/bpm-service/ProcAuthDef/add', params)
}

//删除授权
export const apiDeleteDef=(params)=>{
    return  apiRequestPost('/bpm-service/ProcAuthDef/deleteDef', params)
}

//流程配置管理

//表单配置删除
export const apiFormCfgDeleteForm =(params)=>{
    return  apiRequestPost('/bpm-service/FormCfg/deleteForm', params)
}

//表单配置查询
export const apiFormCfgQueryForm =(params)=>{
    return  apiRequestPost('/bpm-service/FormCfg/queryForm', params)
}

//表单配置保存
export const apiFormCfgSaveForm =(params)=>{
    return  apiRequestPost('/bpm-service/FormCfg/saveForm', params)
}

//表单配置导出
export const apiFormCfgExportForm =(params)=>{
    return  apiRequestExport('/bpm-service/FormCfg/exportForm', params)
}

//表单数据导入
export const apiFormCfgimportForm =(params)=>{
    return  apiRequestImport('/bpm-service/FormCfg/importForm', params)
}

//服务配置查询
export const apiQueryService =(params)=>{
    return  apiRequestPost('/bpm-service/ServiceCfgs/queryService', params)
}

//服务配置删除
export const apiDeleteService =(params)=>{
    return  apiRequestPost('/bpm-service/ServiceCfgs/deleteService', params)
}

//服务配置导出
export const apiExportService =(params)=>{
    return  apiRequestExport('/bpm-service/ServiceCfgs/exportService', params)
}

//服务配置导入
export const apiImportService =(params)=>{
    return  apiRequestImport('/bpm-service/ServiceCfgs/importService', params)
}

//服务配置保存
export const apiSaveService =(params)=>{
    return  apiRequestPost('/bpm-service/ServiceCfgs/saveService', params)
}


//按业务配置经办人

//保存
export const apiSaveAssignee =(params)=>{
    return  apiRequestPost('/bpm-service/AssigneeCfg/saveAssignee', params)
}

//删除
export const apiDeleteAssignee =(params)=>{
    return  apiRequestPost('/bpm-service/AssigneeCfg/deleteAssignee', params)
}
//查询
export const apiQueryAssignee =(params)=>{
    return  apiRequestPost('/bpm-service/AssigneeCfg/queryAssignee', params)
}

//发起业务下拉数据接口
export const apiQueryBizType =(params)=>{
    return  apiRequestPost('/bpm-service/AppCfg/queryBizType', params)
}




//根据流程定义、应用、模块、业务查询最终用户
export const apiGetUsers =(params)=>{
    return  apiRequestPost('/bpm-service/AssigneeCfg/getUsers', params)
}


//流程平均实效

//查询
export const apiQueryAvg =(params)=>{
    return  apiRequestPost('/bpm-service/ProcAvgEffi/queryAvg', params)
}

//流程平均实效导出
export const apieEportAvg =(params)=>{
    return  apiRequestExport('/bpm-service/ProcAvgEffi/exportAvg', params)
}

// 流程效率跟踪


//查询
export const apiQueryFollow =(params)=>{
    return  apiRequestPost('/bpm-service/ProcEffi/queryFollow', params)
}

//导出
export const apiExportFollow =(params)=>{
    return  apiRequestExport('/bpm-service/ProcEffi/exportFollow', params)
}

//查询所有流程目录
export const apiQueryAllBpmCatogary =(params)=>{
    return  apiRequestPost('/bpm-service/ProcEffi/queryAllBpmCatogary', params)
}

//查询产品列表
export const apiQueryProduct =(params)=>{
    return  apiRequestPost('/bpm-service/ProcEffi/queryProduct', params)
}

//部门审批效率图表

//查询列表
export const apiQueryProcessEffi =(params)=>{
    return  apiRequestPost('/bpm-service/ProApproveBran/queryProcessEffi', params)
}

//导出
export const apiBranDownload =(params)=>{
    return  apiRequestExport('/bpm-service/ProApproveBran/branDownload', params)
}



// 流程效率跟踪明细

//表决查询
export const apiQueryVote =(params)=>{
    return  apiRequestPost('/bpm-service/ProcEffiDt/queryVote', params)
}

//下载
export const apiExportDetails =(params)=>{
    return  apiRequestExport('/bpm-service/ProcEffiDt/exportDetails', params)
}

//流程效率跟踪列表明细查询
export const apiQueryDetails =(params)=>{
    return  apiRequestPost('/bpm-service/ProcEffiDt/queryDetails', params)
}


//流程数据权限服务配置

//查询
export const apiQueryData =(params)=>{
    return  apiRequestPost('/bpm-service/DataAuthCfg/queryData', params)
}

//删除
export const apiDeleteData =(params)=>{
    return  apiRequestPost('/bpm-service/DataAuthCfg/deleteData', params)
}

//导出
export const apiExportData =(params)=>{
    return  apiRequestExport('/bpm-service/DataAuthCfg/exportData', params)
}

//导入
export const apiImportData =(params)=>{
    return  apiRequestImport('/bpm-service/DataAuthCfg/importData', params)
}

//保存
export const apiSaveData =(params)=>{
    return  apiRequestPost('/bpm-service/DataAuthCfg/saveData', params)
}


//流程效率统计

//查询
export const apiQueryProccessCount =(params)=>{
    return  apiRequestPost('/bpm-service/ProcEffiCount/queryProccessCount', params)
}

//导出
export const apiExportCount =(params)=>{
    return  apiRequestExport('/bpm-service/ProcEffiCount/exportCount', params)
}

//流程节点列表
export const apiQueryProccessActivity =(params)=>{
    return  apiRequestPost('/bpm-service/ProcEffiCount/queryProccessActivity', params)
}

//经办节点列表
export const apiQueryProccessActivityTask =(params)=>{
    return  apiRequestPost('/bpm-service/ProcEffiCount/queryProccessActivityTask', params)
}

//
export const apiQueryProccessPendTask =(params)=>{
    return  apiRequestPost('/bpm-service/ProEffiPend/queryProccessActivityTask', params)
}


//人员代办效率统计查询
export const apiQueryPersonTask =(params)=>{
    return  apiRequestPost('/bpm-service/ProEffiPend/queryPersonTask', params)
}



//人员审批效率

//查询
export const apiQueryProcessPer =(params)=>{
    return  apiRequestPost('/bpm-service/ProApprovePers/queryProcessPer', params)
}

//查明细
export const apiQueryDetail =(params)=>{
    return  apiRequestPost('/bpm-service/ProApprovePers/queryDetail', params)
}

//下载
export const apiPersDownload =(params)=>{
    return  apiRequestExport('/bpm-service/ProApprovePers/persDownload', params)
}





